﻿package net.wangit.view.element.component;

import net.wangit.Page;
import net.wangit.Row;
import net.wangit.context.ActionContext;
import net.wangit.support.ElementWriter;
import net.wangit.view.element.ElementComponent;
import net.wangit.view.page.PageImpl;

public final class EditorElement extends ElementComponent {

	private static final String EDITOR_JS = "/common/fckeditor/fckeditor.js";
	private static final ElementWriter writer = new EditorElementWriter();

	public EditorElement() {
	}

	protected void configure(Row row1) {
	}

	protected ElementWriter getWriter() {
		return writer;
	}

	protected void cloneAfter(ActionContext ac, Page page) {
		if (page != null)
			((PageImpl) page).putElementHeadJsPath(EditorElement.EDITOR_JS);
	}

}
